package com.mybatis.util;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import java.util.ArrayList;
import java.util.List;

/**
 * @author liuxiaoding
 * @Date 2020/4/6
 **/
public class TestJy {
    public static void main(String[] args) {
        List<NameValuePair> list=new ArrayList<NameValuePair>();
        list.add(new BasicNameValuePair("name","test"));
        list.add(new BasicNameValuePair("email","46380@qq.com"));
        list.add(new BasicNameValuePair("password","46380@qq.com"));
        list.add(new BasicNameValuePair("password_confirmation","46380@qq.com"));
        list.add(new BasicNameValuePair("_token","RW3DxzwncmRMR1dCdiVZWAAY31gXOOuoVOjauADN"));
        System.out.println(HttpUtil.post("http://api.jdyty.com/register",list,"utf-8"));
    }
}
